package pers.acp.test.application.conf;

import io.gitee.zhangbinhub.acp.boot.base.BaseApiConfiguration;
import io.swagger.v3.oas.models.OpenAPI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhang by 27/12/2018
 * @since JDK 11
 */
@Configuration(proxyBeanMethods = false)
public class CustomerApiConfiguration extends BaseApiConfiguration {

    @Autowired
    public CustomerApiConfiguration(@Value("${info.version}") String version) {
        super(version);
    }

    @Bean
    public OpenAPI createRestApi() {
        return buildApiInfo(
                "Test Spring Boot RESTful API",
                "API Document",
                "ZhangBin",
                "https://github.com/zhangbin1010",
                "zhangbin1010@qq.com");
    }
}
